<template>
	<view class="content">
		<view class="header">
			<image :src="img" class="bg_img" mode="widthFix"></image>
		</view>
		<!-- #ifdef MP-WEIXIN-->
		<view class="">
			微信公众平台
		</view>
		<!-- #endif -->
		<!-- #ifdef H5-->
		<view class="">
			H5页面
		</view>
		<!-- #endif -->
		登录数据模板
	</view>
</template>

<script>
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	import {
		imgurl
	} from '@/common/config.js'
	export default {
		data() {
			return {
				img: imgurl + '/static/img/header_bg.png'
			}
		},
		onLoad() {
			this.getlist()

			// this.$store.dispatch('home/getList')
		},
		mounted() {
			// console.log('拼接的图片地址',imgurl);
		},
		computed: {
			...mapGetters('home', ['list']),
		},
		methods: {
			...mapActions('home', {
				getlist: 'getList'
			})
		}
	}
</script>

<style lang="scss" scoped>
	.content {

		.header {
			width: 750rpx;

			/* height: 100%; */
			.bg_img {
				position: fixed;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				z-index: -1;
			}

		}
	}
</style>